package com.yuexiao.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuexiao.pojo.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.beans.factory.annotation.Autowired;

/**
* @author Administrator
* @description 针对表【orders(订单表)】的数据库操作Service
* @createDate 2022-08-10 14:10:57
*/
public interface OrdersService extends IService<Orders> {


    /**
     * 新增一条订单记录
     * @param orders Oders 订单实体对象
     * @return Orders 订单实体类对象
     */
    Orders insertOrders(Orders orders);


    /**
     * 分页查询用户订单信息
     * @param uid Long 用户id
     * @param page int 当前页
     * @param pageSize int 每页显示条数
     * @return Page<Orders> 订单列表
     */
    Page<Orders> getOrdersByPage(Long uid,int page,int pageSize);

}
